{% load filters %}{% load tags %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />


<meta name="verify-v1" content="nZ85XogPZ1WmWRKpGq1/5pdLlcawB2LxBBC1hH6a63k=" />

<title>{% block title %}{% endblock %} - {{ settings.BLOG_TITLE }}</title>
<meta name="keywords" content="3kkk-me, 社会化游戏, 文艺青年, python, appengine, social game, android, iphone" />
<meta name="generator" content="3kkk-me v{{ settings.VERSION }}" />

<meta name="description" content="{% block description %}{% endblock %}, 3kkk-me's self-inspection, {{ settings.BLOG_DESC|addslashes }}" />

<link rel="stylesheet" href="{{ MEDIA_URL }}/css/style.css" type="text/css" media="screen" />

<link rel="alternate" type="application/atom+xml" title="Subscribe to {{ settings.BLOG_AUTHOR }}" href="{{ settings.BASE_URL }}/atom.xml" /> 

</head>

<body>
<div id="header">
  <h1><a href="{{ settings.BASE_URL }}/" title="{{ settings.BLOG_DESC|addslashes }}">{{ settings.BLOG_TITLE }}</a></h1>
  <h2>{{ settings.BLOG_DESC }}</h2>
  <a class="logos" href="{{ settings.BASE_URL }}/" title="{{ settings.BLOG_TITLE }}"></a>
  <ul class="menu">
    <li class="current_page_item"><a href="{{ settings.BASE_URL }}/">首页</a></li>
    
  </ul>

  <ul class="cats">
    <li class="categories">
        <h3>链接</h3>
        <ul>
            <li class="cat-item">
                <a href="http://code.google.com/appengine/" title="Google Appengine">Google Appengine</a>
            </li>

            <li class="cat-item">
                <a href="http://www.python.org/" title="python.org">Python</a>
            </li>
			
			<li class="cat-item">
                <a href="http://nginx.net/" title="nginx.net">Nginx</a>
            </li>

            <li class="cat-item">
                <a href="http://code.google.com/p/3kkk/" title="下载本博客程序">本站程序</a>
            </li>
            
            
        </ul>
    </li>  
  </ul>
  
</div>

<hr>

<div id="wrapper">

<div id="searchbox">
<script type="text/javascript">
<!--
    function search_google(form){
        location = 'http://www.google.com/search?hl=en&newwindow=1&q=site%3A'
        +'{{ settings.DOMAIN }}'
        +'+'
        +encodeURIComponent(form['s'].value)
        +'&btnG=Search';
    }
//-->
</script>
  <form onsubmit="search_google(this);return false" method="get" id="searchform" class="search" action="{{ settings.BASE_URL }}/">
  <div>
    <input name="s" id="s" onblur="if (this.value =='') this.value='Search Blog...'" onfocus="this.value=''" onclick="if (this.value=='Search Blog...') this.value=''" value="Search Blog..." class="inputbox" type="text">
    <input name="button" id="button" value="Search" class="go" type="submit">
  </div>
</form></div>

<div id="content">
  
  {% block content %}{% endblock %}

<div id="sidebar">
  <ul class="feed-rss">
    <li><a href="{{ settings.BASE_URL }}/atom.xml">All Posts RSS</a></li>
  </ul>
    
  <ul>
    {% sidebar_list %}
    <li class="widget">
      <h3>{{ sidebar.title }}</h3>
      <div class="sidebar_content">
        {{ sidebar.content|safe }} 
      </div>
    </li>
    {% endsidebar_list %}

    <li>
      <h3>其他</h3>
      <ul>
        {% if request.user %}
            <li><a href="{{ "/"|logout_url }}">退出</a></li>
            {% ifequal request.user.level 10 %}
            <li><a href="{{ settings.BASE_URL }}/admin/">管理</a></li>
            {% endifequal %}
        {% else %}
            <li><a href="{{ "/"|login_url }}">登录</a></li>
        {% endif %}
        
      </ul>
    </li>

  </ul>

  </div>

  <br clear="all">

</div>

<script type="text/javascript" src="{{ MEDIA_URL }}/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}/syntaxhighlighter/shBrushCss.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}/syntaxhighlighter/shBrushJScript.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}/syntaxhighlighter/shBrushPhp.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}/syntaxhighlighter/shBrushPython.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}/syntaxhighlighter/shBrushXml.js"></script>
<link type="text/css" rel="stylesheet" href="{{ MEDIA_URL }}/syntaxhighlighter/SyntaxHighlighter.css"/>


<script type="text/javascript">
    dp.SyntaxHighlighter.ClipboardSwf = '{{ MEDIA_URL }}/syntaxhighlighter/clipboard.swf';
    dp.SyntaxHighlighter.HighlightAll('code');

</script>

<hr>
<div id="footer">
  <p>©2900 <a href="{{ settings.BASE_URL }}/">{{ settings.BLOG_TITLE }}</a>. 
  Powered by <a href="http://www.3kkk.me/" title="3kkk-me's self-inspection">3kkk-me</a> and
  <a href="http://www.xuhel.cn/wordpress/wp-theme-dark-wish.html">Dark Wish</a>.
  <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" title="署名-非商业性使用-相同方式共享 3.0 通用">Creative Commons</a>.
    <!--13 queries. 0.416 seconds. -->
  </p>
</div>

</div>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-8451423-1");
pageTracker._trackPageview();
} catch(err) {}</script>

</body>

</html>